
import 'package:deepseek_client/common/bean/Message.dart';
import 'package:deepseek_client/widget/MDTypewriterWidgetSpan.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/src/painting/inline_span.dart';
import 'package:markdown_widget/markdown_widget.dart';

class TypeWriterTextNode extends SpanNode{
  final Message item;
  final String text;
  final TextStyle style;

  TypeWriterTextNode({required this.item , required this.text, required this.style});

  @override
  InlineSpan build() {
    return WidgetSpan(child: MDTypewriterWidgetSpan(inlineSpan: TextSpan(text: text), onComplete: (){}, onLineBreak: (){}));
  }

}